﻿@model IEnumerable<Planisoft.Entities.PlantillaAporte>

@{
    ViewBag.Title = "Index";
}

<fieldset> <legend> Plantilla de Aportes del Empleador</legend>

<table>
    <tr>
        <th>
            idAporte
        </th>
        <th>
            IdAportePdtSunat
        </th>
        <th>
            DescPersoAporte
        </th>
        <th>
            Indicador
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.idAporte)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IdAportePdtSunat)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DescPersoAporte)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Indicador)
            @if (item.Indicador == true)
            { 
                 <td>habilitado</td>
            }
            else
            {
                <td>deshabilitado</td>
            }
        </td>
        <td>
            @Ajax.ActionLink(" ", "Edit", "PlantillaAporte", new { id = item.idAporte }, new AjaxOptions { UpdateTargetId = "newConcepto", Url = Url.Action("Edit", new { id = item.idAporte }) }, new { style = "background: url('../../Content/themes/base/imgPlanisoft/editors.png') no-repeat center right;display:block; height:24px; width:24px;margin-top:-2px;text-decoration:none;" })                        
            @*@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })*@
        </td>
    </tr>
}
</table>
<p>    
    @Ajax.ActionLink("Nuevo Aporte", "Create", new AjaxOptions { UpdateTargetId = "newConcepto"})
</p>

<div id="newConcepto">
    
</div> 

</fieldset>
